import time
import numpy as np
from PIL import ImageGrab

def get_screen_shot(filename):
        
    image = ImageGrab.grab() #settings bbox=(0, 0, 1141, 610)
    img = np.array(image.getdata(), np.uint8).reshape(image.size[1], image.size[0], 3)
    #image.show() #展示图片
    image.save("F:\Python\Economic\daily screenshot\{}.jpg".format(filename))
    # print(image.mode) 得到图片的格式
